package com.info.zhiduoduo.repository.entity.partner;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("zdd_partner_validity")
public class PartnerValidity extends Model<PartnerValidity> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	 * 合伙人id
	 */
	private Integer partnerid;
	/**
	 * 生效日期
	 */
	private Date effectivedate;
	/**
	 * 到期日期
	 */
	private Date expiredate;
	private Date createtime;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}
